/*
 *  Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved.
 *
 *   openGauss is licensed under Mulan PSL v2.
 *   You can use this software according to the terms and conditions of the Mulan PSL v2.
 *   You may obtain a copy of Mulan PSL v2 at:
 *
 *   http://license.coscl.org.cn/MulanPSL2
 *
 *   THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 *   EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 *   MERCHANTABILITY OR FITFOR A PARTICULAR PURPOSE.
 *   See the Mulan PSL v2 for more details.
 */

package org.opengauss.agent.vo;

import cn.hutool.core.lang.Pair;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * MultiValueMetric
 *
 * @author: wangchao
 * @Date: 2025/5/13 20:21
 * @since 7.0.0-RC2
 **/
@Data
@AllArgsConstructor
public class MultiValueMetric {
    private String name;
    private Pair<String, Double> propValue;

    /**
     * Create MultiValueMetric
     *
     * @param name metric name
     * @param propName prop name
     * @param propValue prop value
     * @return MultiValueMetric
     */
    public static MultiValueMetric of(String name, String propName, Double propValue) {
        return new MultiValueMetric(name, Pair.of(propName, propValue));
    }
}
